<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos  -->
			<title>Docs For Class DomDateTimePeriod</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
						<script src="../media/lib/classTree.js"></script>
												<script language="javascript" type="text/javascript">
				var imgPlus = new Image();
				var imgMinus = new Image();
				imgPlus.src = "../media/images/plus.png";
				imgMinus.src = "../media/images/minus.png";
				
				function showNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgMinus.src;
					oTable.style.display = "block";
				}
				
				function hideNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgPlus.src;
					oTable.style.display = "none";
				}
				
				function nodeIsVisible(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
									break;
							}
					return (oTable && oTable.style.display == "block");
				}
				
				function toggleNodeVisibility(Node){
					if (nodeIsVisible(Node)){
						hideNode(Node);
					}else{
						showNode(Node);
					}
				}
			</script>
					</head>
		<body>
			<div class="page-body">			
<h2 class="class-name"><img src="../media/images/Class_logo.png"
														alt=" Class"
														title=" Class"
														style="vertical-align: middle"> DomDateTimePeriod</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">author:</span> Oliver Leisalu</li>
				<li><span class="field">filesource:</span> <a href="../__filesource/fsource_DomDateTime__libsDomDateTimeDomDateTimePeriod.class.php.html">Source Code for this file</a></li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_libs---DomDateTime---DomDateTimePeriod.class.php.html">/libs/DomDateTime/DomDateTimePeriod.class.php</a> (line <span class="field"><a href="../__filesource/fsource_DomDateTime__libsDomDateTimeDomDateTimePeriod.class.php.html#a6">6</a></span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																			
				<div class="method-definition">
					<img src="../media/images/StaticMethod.png" alt=" "/>
					static 						<span class="method-result">void</span>
										<a href="#c" title="details" class="method-name">c</a>
											(<span class="var-type">Mixed</span>&nbsp;<span class="var-name">$start</span>, <span class="var-type">Mixed</span>&nbsp;<span class="var-name">$end</span>)
									</div>
																																																																																																																											
				<div class="method-definition">
					<img src="../media/images/Constructor.png" alt=" "/>
											<span class="method-result">DomDateTimePeriod</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											(<span class="var-type">Mixed</span>&nbsp;<span class="var-name">$start</span>, <span class="var-type">Mixed</span>&nbsp;<span class="var-name">$end</span>)
									</div>
																							
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">DomDateTimePeriod[]</span>
										<a href="#getDays" title="details" class="method-name">getDays</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">Array</span>
										<a href="#getDif" title="details" class="method-name">getDif</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">String</span>
										<a href="#getDifString" title="details" class="method-name">getDifString</a>
											([<span class="var-type"></span>&nbsp;<span class="var-name">$partsToInclude</span> = <span class="var-default">array('years','months','days','hours','minutes','seconds')</span>], [<span class="var-type">Int</span>&nbsp;<span class="var-name">$maxNrOfElements</span> = <span class="var-default">NULL</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result"><a href="../DomDateTime/DomDateTime.html">DomDateTime</a></span>
										<a href="#getEnd" title="details" class="method-name">getEnd</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">DomDateTimePeriod[]</span>
										<a href="#getMonths" title="details" class="method-name">getMonths</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">Int</span>
										<a href="#getNrOfDays" title="details" class="method-name">getNrOfDays</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">Int</span>
										<a href="#getNrOfHours" title="details" class="method-name">getNrOfHours</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">Int</span>
										<a href="#getNrOfMinutes" title="details" class="method-name">getNrOfMinutes</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">Int</span>
										<a href="#getNrOfMonths" title="details" class="method-name">getNrOfMonths</a>
											([<span class="var-type">Bool</span>&nbsp;<span class="var-name">$includeEndDate</span> = <span class="var-default">true</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">Int</span>
										<a href="#getNrOfSeconds" title="details" class="method-name">getNrOfSeconds</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">Int</span>
										<a href="#getNrOfWorkDays" title="details" class="method-name">getNrOfWorkDays</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">Int</span>
										<a href="#getNrOfyears" title="details" class="method-name">getNrOfyears</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result"><a href="../DomDateTime/DomDateTime.html">DomDateTime</a></span>
										<a href="#getStart" title="details" class="method-name">getStart</a>
										()
									</div>
											</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodc" id="c"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/StaticMethod.png" />
		<span class="method-title">static c</span> (line <span class="line-number"><a href="../__filesource/fsource_DomDateTime__libsDomDateTimeDomDateTimePeriod.class.php.html#a25">25</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		static <span class="method-result">void</span>
		<span class="method-name">
			c
		</span>
					(<span class="var-type">Mixed</span>&nbsp;<span class="var-name">$start</span>, <span class="var-type">Mixed</span>&nbsp;<span class="var-name">$end</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">Mixed</span>
				<span class="var-name">$start</span><span class="var-description">: Unix timestamp or DomDateTime object or anything that strtotime accepts.</span>			</li>
					<li>
				<span class="var-type">Mixed</span>
				<span class="var-name">$end</span><span class="var-description">: Unix timestamp or DomDateTime object or anything that strtotime accepts.</span>			</li>
				</ul>
		
			
	</div>
<a name="method__construct" id="__construct"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Constructor.png" />
		<span class="method-title">Constructor __construct</span> (line <span class="line-number"><a href="../__filesource/fsource_DomDateTime__libsDomDateTimeDomDateTimePeriod.class.php.html#a33">33</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">DomDateTimePeriod</span>
		<span class="method-name">
			__construct
		</span>
					(<span class="var-type">Mixed</span>&nbsp;<span class="var-name">$start</span>, <span class="var-type">Mixed</span>&nbsp;<span class="var-name">$end</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">Mixed</span>
				<span class="var-name">$start</span><span class="var-description">: Unix timestamp or DomDateTime object or anything that strtotime accepts.</span>			</li>
					<li>
				<span class="var-type">Mixed</span>
				<span class="var-name">$end</span><span class="var-description">: Unix timestamp or DomDateTime object or anything that strtotime accepts.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetDays" id="getDays"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getDays</span> (line <span class="line-number"><a href="../__filesource/fsource_DomDateTime__libsDomDateTimeDomDateTimePeriod.class.php.html#a282">282</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns days in period. day starts 00:00:00 and ends 23:59:59</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">DomDateTimePeriod[]</span>
		<span class="method-name">
			getDays
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetDif" id="getDif"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getDif</span> (line <span class="line-number"><a href="../__filesource/fsource_DomDateTime__libsDomDateTimeDomDateTimePeriod.class.php.html#a139">139</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns difference between times</p>
	<ul class="tags">
				<li><span class="field">return:</span> years  months  days  hours  minutes  seconds</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Array</span>
		<span class="method-name">
			getDif
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetDifString" id="getDifString"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getDifString</span> (line <span class="line-number"><a href="../__filesource/fsource_DomDateTime__libsDomDateTimeDomDateTimePeriod.class.php.html#a161">161</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns difference between dates as a string. (Returns rounded result. Nr of days may wary.)</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">String</span>
		<span class="method-name">
			getDifString
		</span>
					([<span class="var-type"></span>&nbsp;<span class="var-name">$partsToInclude</span> = <span class="var-default">array('years','months','days','hours','minutes','seconds')</span>], [<span class="var-type">Int</span>&nbsp;<span class="var-name">$maxNrOfElements</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">Array</span>
				<span class="var-name">$partsToInclude</span>			</li>
					<li>
				<span class="var-type">Int</span>
				<span class="var-name">$maxNrOfElements</span><span class="var-description">: How many date params to include. For example, if item is more than one year old, seconds might not matter anymore.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetEnd" id="getEnd"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getEnd</span> (line <span class="line-number"><a href="../__filesource/fsource_DomDateTime__libsDomDateTimeDomDateTimePeriod.class.php.html#a257">257</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../DomDateTime/DomDateTime.html">DomDateTime</a></span>
		<span class="method-name">
			getEnd
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetMonths" id="getMonths"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getMonths</span> (line <span class="line-number"><a href="../__filesource/fsource_DomDateTime__libsDomDateTimeDomDateTimePeriod.class.php.html#a266">266</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns months in period.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">DomDateTimePeriod[]</span>
		<span class="method-name">
			getMonths
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetNrOfDays" id="getNrOfDays"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getNrOfDays</span> (line <span class="line-number"><a href="../__filesource/fsource_DomDateTime__libsDomDateTimeDomDateTimePeriod.class.php.html#a58">58</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Return number of whole days between dates</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Int</span>
		<span class="method-name">
			getNrOfDays
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetNrOfHours" id="getNrOfHours"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getNrOfHours</span> (line <span class="line-number"><a href="../__filesource/fsource_DomDateTime__libsDomDateTimeDomDateTimePeriod.class.php.html#a111">111</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns number of whole hours between dates</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Int</span>
		<span class="method-name">
			getNrOfHours
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetNrOfMinutes" id="getNrOfMinutes"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getNrOfMinutes</span> (line <span class="line-number"><a href="../__filesource/fsource_DomDateTime__libsDomDateTimeDomDateTimePeriod.class.php.html#a118">118</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns number of whole minutes between dates.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Int</span>
		<span class="method-name">
			getNrOfMinutes
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetNrOfMonths" id="getNrOfMonths"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getNrOfMonths</span> (line <span class="line-number"><a href="../__filesource/fsource_DomDateTime__libsDomDateTimeDomDateTimePeriod.class.php.html#a70">70</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Return number of months between dates</p>
<p class="description"><p>If $includeEndDate is true then given a start date of 10/30/00 and an end date of 11/30/00, one month is returned; however, an end date of 11/29/00 returns a zero.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Int</span>
		<span class="method-name">
			getNrOfMonths
		</span>
					([<span class="var-type">Bool</span>&nbsp;<span class="var-name">$includeEndDate</span> = <span class="var-default">true</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">Bool</span>
				<span class="var-name">$includeEndDate</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetNrOfSeconds" id="getNrOfSeconds"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getNrOfSeconds</span> (line <span class="line-number"><a href="../__filesource/fsource_DomDateTime__libsDomDateTimeDomDateTimePeriod.class.php.html#a125">125</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns number of seconds between dates</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Int</span>
		<span class="method-name">
			getNrOfSeconds
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetNrOfWorkDays" id="getNrOfWorkDays"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getNrOfWorkDays</span> (line <span class="line-number"><a href="../__filesource/fsource_DomDateTime__libsDomDateTimeDomDateTimePeriod.class.php.html#a44">44</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Return number of whole workdays between dates. (times are not taken into account.)  For example: from 2009-04-15 23:59:59 to 2009-04-22 00:00:00 there are 5 workdays. As first date only lasts one second, it still counts as a workday.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Int</span>
		<span class="method-name">
			getNrOfWorkDays
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetNrOfyears" id="getNrOfyears"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getNrOfyears</span> (line <span class="line-number"><a href="../__filesource/fsource_DomDateTime__libsDomDateTimeDomDateTimePeriod.class.php.html#a83">83</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Return number of years between dates</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Int</span>
		<span class="method-name">
			getNrOfyears
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetStart" id="getStart"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getStart</span> (line <span class="line-number"><a href="../__filesource/fsource_DomDateTime__libsDomDateTimeDomDateTimePeriod.class.php.html#a250">250</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../DomDateTime/DomDateTime.html">DomDateTime</a></span>
		<span class="method-name">
			getStart
		</span>
				()
			</div>
	
		
			
	</div>
						
		</div>
	</div>

	
	<p class="notes" id="credit">
		Documentation generated on Fri, 24 Sep 2010 21:13:26 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a>
	</p>
	</div></body>
</html>